<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0%;
        box-sizing: border-box;
      }
      body {
        background-color: #000;
      }
      .gg {
        width: 250px;
        height: 290px;
        background: url("../../img/3.png") no-repeat;
        background-size: 100%;
        position: fixed;
        bottom: 0;
        right: 0;
        opacity: 0;
        transition: 1s;
      }
      #del {
        width: 20px;
        height: 20px;
        position: absolute;
        top: 0;
        right: 0;
        margin: 5px;
        background-color: peru;
        opacity: 0.7;
        line-height: 20px;
        text-align: center;
        /*1*/
        cursor: pointer;
      }
    </style>
  </head>
  <body>
    <div class="gg" id="gg">
      <!-- 1 -->
      <span id="del">&times;</span>
      <marquee>
        <h1></h1>
      </marquee>
    </div>
    <script>
      var gg = document.getElementById("gg");
      var del = document.getElementById("del");

      setTimeout(function () {
        gg.style.opacity = 1;
      }, 2000);

      del.onclick = function () {
        gg.style.opacity = 0;
      };
    </script>
  </body>
</html>
